package com.tj.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tj.pojo.Dish;
import com.tj.service.DishService;
import com.tj.mapper.DishMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author t
* @description 针对表【dish(菜品管理)】的数据库操作Service实现
* @createDate 2023-04-25 21:48:54
*/
@Service
public class DishServiceImpl implements DishService{
    @Autowired
    DishMapper dishMapper;

    @Override
    public Dish getByCategoryId(Long id) {
        return dishMapper.getByCategoryId(id);
    }

    @Override
    public List<Dish> getByCategory(Long category) {
        return dishMapper.getByCategory(category);
    }
}




